package com.jumi.microservice.stock.service;

import com.jumi.microservice.stock.domain.CommodityRenderVo;
import com.jumi.microservice.stock.dto.commodity.CommodityApplyDTO;

import java.util.List;

/**
 * @author ssk
 * @create 2020/9/1 10:06
 **/
public interface CommodityApplyService {

    int save(CommodityApplyDTO applyRequest);

    int update(CommodityApplyDTO applyRequest);

    List<CommodityApplyDTO> findByPage(CommodityApplyDTO applyDTO);

    CommodityApplyDTO findById(Long id, Integer type);

    /**
     * 分配库存
     * @param renderVo
     * @return
     */
    int render(CommodityRenderVo renderVo, String createBy);



}
